package com.usian.goods.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.goods.mapper.TypeMapper;
import com.usian.model.goods.Type;
import com.usian.goods.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品分类表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-12-23
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements ITypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> findType(Type type) {
        return typeMapper.selectList(null);
    }

    @Override
    public void delete(Integer id) {
        typeMapper.deleteById(id);
    }
}
